import Http from "../http";

export function loginApi(params:any) {
    return Http.post('login/account', params)
}

export function logoutApi() {
    return Http.post('login/outLogin')
}

export function captchaApi(phone:string) {
    return Http.get('register/captcha', { phone })
}

export function registerApi(params:any) {
    return Http.post('register', params)
}

export function forgetApi(params:any) {
    return Http.post('findpw/newpassword', params)
}

export function captchaForgetApi(phone:string) {
    return Http.get('findpw/captcha', { phone })
}
